package com.tanhua.exception;

import com.tanhua.vo.ErrorResult;
import lombok.Data;
/*
* 创建自定义异常，按照统一的格式
* */
@Data
public class BusinessException extends Exception {

    private ErrorResult errorResult;

    public BusinessException(ErrorResult errorResult){
        super(errorResult.getErrMessage());
        this.errorResult = errorResult;
    }

}
